//
//  HBChannelItemModel.h
//  HeartBeat
//
//  Created by karong on 2023/8/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class HBChannelIRankModel;
@interface HBChannelItemModel : NSObject
///推荐位ID
@property (nonatomic, assign) NSInteger id;
///推荐位名稱
@property (nonatomic, strong) NSString * name;
///频道ID
@property (nonatomic, assign) NSInteger channel_id;
///展示樣式
@property (nonatomic, assign) HBChannelConfig style;
///推荐位圖標
@property (nonatomic, strong) NSString * icon;
///是否顯示更多 0-不顯示 1-顯示
@property (nonatomic, assign) BOOL is_more;
@property (nonatomic, assign) NSInteger default_limit;
///內容類型 1-小說 3-分類 4-运营位 5-每日限免 6-排行榜
@property (nonatomic, assign) NSInteger content_type;
@property (nonatomic, assign) NSInteger cid;
///返回的是不同的對象 需要根據 style 來解析
@property (nonatomic, strong) NSArray * items;
///只有style = 15的时候才使用
@property (nonatomic, strong) HBChannelIRankModel * rank_list;
- (BOOL)showHeader;
- (NSInteger)row;
- (NSString *)cellClass;
- (CGSize)cellSize;
- (UIEdgeInsets)inset;
@end

@interface HBItemModel : NSObject
@property (nonatomic, assign) NSInteger position_id;
///跳转链接
@property (nonatomic, strong) NSString * jump_url;
///跳转類型
@property (nonatomic, assign) NSInteger jump_type;
///標題
@property (nonatomic, strong) NSString * title;
///圖片
@property (nonatomic, strong) NSString * thumb;
///書籍id
@property (nonatomic, assign) NSInteger book_id;
///是否加入書架
@property (nonatomic, assign) BOOL is_bookshelf;
@end

@interface HBChannelIRankModel : NSObject
@property (nonatomic, strong) NSArray * most_favors;
@property (nonatomic, strong) NSArray * most_read;
@property (nonatomic, strong) NSArray * newest;

@end
NS_ASSUME_NONNULL_END
